package com.linq.cool.beauty.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.linq.cool.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author: yqlin
 * @Date: 2021/2/11 01:15
 * @Description: 订单历史记录表
 * @Version: 1.0.0
 */

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "beauty_order_history")
public class BeautyOrderHistory extends BaseEntity {
    /**
     * 主键id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 订单id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 客户(会员)id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "member_id")
    private Long memberId;

    /**
     * 客户手机号
     */
    @TableField(value = "member_phone")
    private String memberPhone;

    /**
     * 客户真实姓名
     */
    @TableField(value = "member_real_name")
    private String memberRealName;

    /**
     * 订单状态(0:待付款 1:待确认 2:待评价 3:已完成 4:无效订单 5已关闭
     */
    @TableField(value = "order_status")
    private Integer orderStatus;

    /**
     * 备注信息
     */
    @TableField(value = "remark")
    private String remark;
}